/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.elookinto.wordlist;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 *
 * @author zw251y
 */
public class Util {
    
     public  static Connection getCon()
     {
         Connection con = null;
         try {
            con = DriverManager.getConnection("jdbc:hsqldb:file:/opt/hsqldb/chinese/chinesedb", "SA", "");
           
        } catch (SQLException e) {
             e.printStackTrace();
        }
         return con;
     }
             
    
    static {

        try {
            Class.forName("org.hsqldb.jdbc.JDBCDriver");
           
        } catch (ClassNotFoundException e) {
            e.printStackTrace(System.out);
        }
    }
    
    
    
}
